package com.orhon.smartcampus.sysinfo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/sysinfo")
@RestController
public class InfoRest {

    @GetMapping("/version")
    public String sysinfo(){
        String version = System.getenv("version");
        String branch = System.getenv("branch");

        return "镜像版本：" + version + "\n" + "分支："+ branch;
    }
}
